<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="赵鹤阳">
    <title></title>
    <style>
        main {
            width: 1100px;
            height: 500px;
            border: 1px solid;
            margin: 80px auto;
        }

        ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        ul li {
            width: 200px;
            height: 200px;
            border: 1px solid red;
            float: left;
             margin: 20px 8px; 
            position: relative;
        }

        ul img {
            width: 200px;
            height: 200px;
            top: 0px;
            left: 0;
            position: absolute;
            opacity: 0;
        }

        ul p {
            text-align: center;
            font-size: 30px;
        }

        li img:hover {
            opacity: 1;
            transform: scale(1.2, 1.2);
        }
    </style>
</head>

<body>
    <main>
        <div class="char">
            <ul>
                <li>
                    <p>BMW <br>宝马汽车</p><img src="img/1.jpg" alt=""></li>
                <li>
                    <p>BMW <br>宝马汽车</p><img src="img/2.jpg" alt=""></li>
                <li>
                    <p>BMW <br>宝马汽车</p><img src="img/3.jpg" alt=""></li>
                <li>
                    <p>BMW <br>宝马汽车</p><img src="img/4.jpg" alt=""></li>
                <li>
                    <p>BMW <br>宝马汽车</p><img src="img/5.jpg" alt=""></li>
                <li>
                    <p>BMW <br>宝马汽车</p><img src="img/6.jpg" alt=""></li>
                <li>
                    <p>BMW <br>宝马汽车</p><img src="img/7.jpg" alt=""></li>
                <li>
                    <p>BMW <br>宝马汽车</p><img src="img/8.jpg" alt=""></li>
                <li>
                    <p>BMW <br>宝马汽车</p><img src="img/9.jpg" alt=""></li>
                <li>
                    <p>BMW <br>宝马汽车</p><img src="img/10.jpg" alt=""></li>
            </ul>
        </div>
    </main>
</body>

</html>